package com.odin.rmsservice;

import org.junit.Test;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * Create by ICE on 2018-11-30
 **/

public class demo {

    @Test
    public void demo1(){
        LocalDateTime now = LocalDateTime.now();
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        String format = now.format(formatter);
        System.out.println(now);
        System.out.println(format);
    }
}
